<!DOCTYPE html>
<html>
<head>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/jsp/common/mytags.jsp"%>
<title>新增贷款</title>
<t:base type="autocomplete,my97,easyui,lhgdialog,dataTables"></t:base>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- extend -->
<%@ include file="/jsp/common/common_script.jsp"%>
<script type="text/javascript" src="static_resources/javascript/model/sys_set/loan/apply_loan_tab/apply_loan_add_or_edit.2.0.js"></script>

</head>



<body>
<div id="valid_info" style="display: none;">
<div class="formtitle"><span>贷款验证信息</span></div>
    <div class="formtext"><b>注：新增申请单前，请先进行敏感信息验证和用户资料进行验证</b></div>
 <div class="toolsli" >
    <form id="_valid_form_default" name="_valid_form_default" enctype="multipart/form-data" method="post">
 		<ul class="forminfo">
		    <li>
			 	<kl class="kl_three">
			    	<label>贷款人<b>*</b></label>  
			    	<input name="queryProxy[validLoanBorrower]" id="validLoanBorrower" type="text" class="newinput190 easyui-validatebox"    data-options="validType:['unnormal','chinese','length[1,20]']"/>
			   	</kl>
			    <kl class="kl_second">
			     	<label>贷款人身份证号<b>*</b></label>
			    	<input name="queryProxy[validClientCardId]"  id="validClientCardId" type="text" class="newinput190 easyui-validatebox"  data-options="validType:['unnormal','idcard']"/>  
			    </kl>
		    </li>
		    
		     <li>
			 	<kl class="kl_three">
			    	<label>贷款人手机号码<b>*</b></label>  
			    	<input name="queryProxy[validClientMobile]" id="validClientMobile" type="text" class="newinput190 easyui-validatebox"    data-options="validType:['unnormal','mobile','length[1,20]']"/>
			   	</kl>
			    <kl class="kl_second">
			     	<label>配偶名称<b></b></label>
			    	<input name="queryProxy[validSpouseName]" id="validSpouseName" type="text" class="newinput190 easyui-validatebox"  data-options="validType:['unnormal','chinese']"/>  
			    </kl>
		    </li>
		    
		      <li>
			    <kl class="kl_three">
			     	<label>配偶身份证号<b></b></label>
			    	<input name="queryProxy[validSpouseCardId]"  id="validSpouseCardId" type="text" class="newinput190 easyui-validatebox"  data-options="validType:['unnormal','idcard']"/>  
			    </kl>
			    <kl class="kl_second">
			    	<label>配偶号码<b></b></label>  
			    	<input name="queryProxy[validSpousePhone]" id="validSpousePhone"  type="text" class="newinput190 easyui-validatebox"    data-options="validType:['unnormal','mobile','length[1,20]']"/>
			   	</kl>
		    </li>
		    
		     <li>
			    <kl class="kl_three">
			     	<label>单位名称<b></b></label>
			    	<input name="queryProxy[validWorkCompany]"  id="validWorkCompany" type="text" class="newinput190 easyui-validatebox"  data-options="validType:['unnormal']"/>  
			    </kl>
			    <kl class="kl_second">
			    	<label>营业执照号<b></b></label>  
			    	<input name="queryProxy[validWorkLicense]" id="validWorkLicense"  type="text" class="newinput190 easyui-validatebox"    data-options="validType:['unnormal','length[1,20]']"/>
			   	</kl>
		    </li>
		    
    		

    		<li><label>&nbsp;</label><input name="valid_sensitive_button" type="button" class="scbtn"   onclick="validSensitive(this);"  value="验证敏感信息" style="margin-right: 5px;"/> 
    		 <input name="valid_info_button" type="button" class="scbtn"  onclick="validInfo(this);" value="验证资料信息"/></li>
    	</ul>
    </form>
</div>
</div>



	<div class="formtitle"><span>贷款基本信息</span></div>
    <div class="formtext"><b>注：新增申请单前，请先输入身份证号及贷款人进行验证，验证通过，才能成功保存申请单</b></div>
 <div class="toolsli">
    <form id="_form_loan_default" name="_form_loan_default" enctype="multipart/form-data" method="post">
    	<input type="hidden" name="id" id="myLoanId"  value="${param.id}"/>
 		<ul class="forminfo">
		    <li>
			 	<kl class="kl_three">
			    	<label>贷款人<b>*</b></label>  
			    	<input name="loanBorrower" id="loanBorrower" type="text" class="newinput190 easyui-validatebox"    data-options="required:true,validType:['unnormal','chinese','length[1,20]']"/>
			   	</kl>
			    <kl class="kl_second">
			     	<label>身份证号<b>*</b></label>
			    	<input name="clientCardId" id="clientCardId" type="text" class="newinput190 easyui-validatebox"  data-options="required:true,validType:['unnormal','idcard']"/>  
			    </kl>
		    </li>
    		<li>
			    <kl class="kl_three">
			     	<label>申请日期<b>*</b></label>
			    	<input name="loanApplyDate" type="text" class="newinput190 easyui-validatebox Wdate"  data-options="required:true"  onClick="WdatePicker()" />  
			   	</kl>
      			<kl class="kl_second">
	    			<label>业务来源<b>*</b></label>  
		    		<select name="loanSource" id="loanSource"></select>
	   			</kl>
	   		</li>
	   		<li>
				<kl class="kl_three">
			     	<label>贷款类型<b>*</b></label>
				    <select name="loanType" id="loanType"></select>
			   	</kl>
	   			<kl class="kl_second">
      				<label>贷款产品<b>*</b></label>  
		    		<select  name="loanProduct" id="loanProduct"></select>
	   			</kl>
	   		</li>
	   		<li> 
        		<kl class="kl_three">
    	  			<label>业务性质<b>*</b></label>
		    		<select  name="loanNatureBusiness" id="loanNatureBusiness"></select>
	    		</kl>
	    		<kl class="kl_second">
	    			<label>客户性质<b>*</b></label>  
		    		<select  name="loanNatureClilent" id="loanNatureClilent"></select>
	   			</kl>
	   		</li>
	   		<li> 
        		<kl class="kl_three">
    				<label>资金性质<b>*</b></label>
		    		<select  name="loanNatureFund" id="loanNatureFund">
		    		</select>
	    		</kl>
	    		<kl class="kl_second">
	     			<label>贷款用途<b>*</b></label>
				    <select  name="loanPurpose" id="loanPurpose">
				    </select>
	   			</kl>
	   		</li>
	   
		    <li> 
		        <kl class="kl_three">
		    	 	<label>申请额度<b>*</b></label>  
			    	<input name="loanLimitApply" type="text" class="newinput120  easyui-validatebox" value="" data-options="required:true,validType:['intOrFloat_interval[0,9999999999]']" />（元）
			    </kl>
			    <kl class="kl_second">
			     	<label>贷款期限<b>*</b></label>
			     	<input name="loanDeadlineApply" type="text" class="newinput120 easyui-validatebox" value="" data-options="required:true,validType:['number_interval[1,12]']"/>（个月）
			   	</kl>
		   	</li>
		   	<li> 
		   		<kl class="kl_three">
	    			<label>还款方式<b>*</b></label>
		    		<select  name="loanRepayType" id="loanRepayType"></select>
	   			</kl>
	        	<kl class="kl_second">
	    	 		<label>月利率<b>*</b></label>
		     		<input name="loanRateInterest" type="text" class="newinput120 easyui-validatebox" value=""  data-options="required:true,validType:['intOrFloat_interval[1,100]']"/>（％）
		    	</kl>
		   	</li>
	 		<li> 
			    <kl class="kl_three">
			    	<label>管理费率<b>*</b></label>
			     	<input name="loanRateManage" type="text" class="newinput120 easyui-validatebox" value="" data-options="required:true,validType:['intOrFloat_interval[1,100]']"/>（％）
			   	</kl>
		   		<kl class="kl_second">
		    	 	<label>手续费率<b>*</b></label>
			     	<input name="loanRateHandling" type="text" class="newinput120 easyui-validatebox" value=""  data-options="required:true,validType:['intOrFloat_interval[1,100]']"/>（％）
			    </kl>
		   	</li>
	   			<!-- 
        		<kl class="kl_second">
		    		<label>本金周期<b>*</b></label>
				    <select id="loanCapitalRound" name="loanCapitalRound">
				    </select>
			           每期还本<input name="loanCapitalEvery" type="text" class="scinput easyui-validatebox" value="0"  data-options="required:true,validType:['number_interval[0,100]']" style="width:70px;"/>％(0表示按期平均)
			    </kl>
			    <kl class="kl_first">
			    <label>利息周期<b>*</b></label>
				  <select id="loanInterestRound" name="loanInterestRound"></select>
				  <select id="loanInterestType" name="loanInterestType"></select>
			   </kl>
			   <kl class="kl_three">
			    	<label >年银行流水总额<b>*</b></label>
			     	<input name="loanBankAmount" type="text" class="newinput120 easyui-validatebox" value="" data-options="required:true,validType:['intOrFloat_interval[0,100000]']" />（万元）
			   	</kl>
	   			 -->
    
     		<li> 
     		    <input  type="hidden"  name="loanSourceMan" id="loanSourceMan"/>
	        	<kl class="kl_three">
	    			<label>项目来源人<b>*</b></label>  
		    		<input name="loanSourceName"   id="loanSourceName"   type="text"   class="newinput190 easyui-validatebox"  data-options="required:true,validType:['unnormal','length[1,32]']"/>
		    		
		    	</kl>
		    	<kl class="kl_second">
		    	 	<label>贷款对象<b>*</b></label>
				    <select id="loanObject"  name="loanObject"></select>
			    </kl>
             </li>
             
             <li><label>&nbsp;</label>
             <input  id="clear_loan_disabled"  onclick="clearLoanDisabled();"  type="button" class="scbtn" value="清除" style="margin-right: 5px;"/>
             <input name="confirm_loan_button"   id="save_loan"  onclick="saveLoan();"  type="button" class="scbtn" value="保存"/>
             </li>
    	</ul>
    </form>
    </div>
    
    
    <div class="formtitle"><span>用户基本信息</span></div>
    <div class="formtext"><b>注：如果用户不存在系统默认会入库到系统</b></div>
   <div class="toolsli">
  <form id="_form_client_default" name="_form_client_default" enctype="multipart/form-data" method="post">
    	<input type="hidden" name="id" id="myClientId"  value="${param.clientId}"/>
   		<ul class="forminfo">
		    <li>
			    <kl class="kl_three">
				     <label>用户名称<b>*</b></label>  
				    <input name="clientName" id="clientName" type="text" class="newinput190 easyui-validatebox"  data-options="required:true,validType:['unnormal','chinese','length[1,20]']"/>  
				</kl>
			   	<kl class="kl_second">
			   		<!-- 证件类型去掉 -->
			   		<label>身份证号<b>*</b></label>
			    	<input name="clientIdCard" id="clientIdCard" type="text" class="newinput190 easyui-validatebox"  data-options="required:true,validType:['unnormal','idcard']"/>  
			   </kl>
		    </li>
		    <li>
			    <kl class="kl_first">
			     	<label>身份证地址<b>*</b></label>
			    	<input name="clientIdAddress" type="text" class="newinput420 easyui-validatebox" data-options="required:true,validType:['unnormal','length[1,50]']"/>  
			   	</kl>
			</li>  
   			<li>
			    <kl class="kl_three">
				    <label>性别<b>*</b></label>  
					<select  name="clientSex" id="clientSex"></select>
			   	</kl>
			   	<kl class="kl_second">
    				<label>籍贯<b></b></label>  
    				<input name="clientNative" type="text" class="newinput190 easyui-validatebox" data-options="validType:['unnormal','length[0,20]']"/>  
    			</kl>
  			</li>
  			<li>
			   	<kl class="kl_three">
			   		<label>年龄<b></b></label>  
			   		<input name="clientAge" type="text" class="newinput120  easyui-validatebox" value="0" data-options="validType:['number_interval[0,200]']" />（岁）
			   	</kl>
     			<kl class="kl_second">
			   		<label>出生日期<b></b></label>
			    	<input name="clientBirthday" type="text" class="newinput190 easyui-validatebox Wdate" onClick="WdatePicker()" />  
			    </kl>
   			</li>
   			<li>
			    <kl class="kl_three">
			     	<label>学历<b></b></label>
				    <select name="clientEducation" id="clientEducation" ></select>
			   	</kl>
			   	<kl class="kl_second">
		    	  	<label>手机号码<b>*</b></label>
			      	<input name="clientMobile" type="text" class="newinput190 easyui-validatebox" data-options="required:true,validType:['unnormal','mobile' ]"/> 
			  	</kl>
			</li>
   			<li>
			    <kl class="kl_three">
				    <label>婚姻状况<b>*</b></label>  
				    <select name="clientMaritalStatus" id="clientMaritalStatus">
				    </select>
			  	</kl>
			  	<kl class="kl_second">
			   		<label>子女<b></b></label>  
			   		<input name="clientChildren" type="text" class="newinput120  easyui-validatebox" value="0" data-options="validType:['number_interval[0,200]']" />（人）
			   	</kl>
   			</li>
   			<li>
			    <kl class="kl_three">
			     	<label>配偶名称<b></b></label>
			     	<input name="spouseName" id="spouseName" type="text" class="newinput190 easyui-validatebox"  data-options="validType:['unnormal','chinese','length[1,20]']"/> 
			   	</kl>
		      	<kl class="kl_second">
		      		<label>配偶身份证号<b></b></label>
			    	<input name="spouseCardId" id="spouseCardId" type="text" class="newinput190 easyui-validatebox"  data-options="validType:['unnormal','idcard']"/>   
			   </kl>
			</li>
			<li> 
		        <kl class="kl_three">
		    		<label>配偶手机号码<b></b></label>
		    		<input name="spousePhone" type="text" class="newinput190 easyui-validatebox" data-options="validType:['unnormal','mobile' ]"/> 
			    </kl>
			    <kl class="kl_second">
			    	<label>配偶月收入<b></b></label>
			    	<input name="spouseIncome" type="text" class="newinput120 easyui-validatebox" data-options="validType:['intOrFloat_interval[0,9999999999]']"/>（元） 
			   </kl>
   			</li>
   			<li>
			    <kl class="kl_first">
					<label>居住地址<b>*</b></label>
			    	<input name="clientHouseAddress" type="text" class="newinput420 easyui-validatebox" data-options="required:true" data-options="validType:['length[1,50]']"/>  
				</kl>
			</li>
			<li>
	    		<kl class="kl_three">
			    	<label>居住时间<b></b></label>
			    	<input name="clientHouseTime" type="text" class="newinput190 easyui-validatebox Wdate" onClick="WdatePicker()" />   
			    </kl>
	   			<kl class="kl_second">
					<label>住宅电话<b></b></label>
			    	<input name="clientHouseTel" type="text" class="newinput190 easyui-validatebox" data-options="validType:['mobile']"/>  
				</kl>
			</li>
			<li>
				<kl class="kl_three">
		    		<label>居住类别<b></b></label>  
		    		<!-- Client_Residence_Type_Code -->
		    		<select id="clientHouseType" name="clientHouseType">
		    		</select>
				</kl>
				<kl class="kl_second">
	     			<label>月还款/租金<b></b></label>
	     			<input name="clientHouseRent" type="text" class="newinput120 easyui-validatebox" data-options="validType:['intOrFloat_interval[0,9999999999]']"/>（元）   
	   			</kl>
			</li>
			<li>
				<kl class="kl_three">
		    		<label>与谁同居<b></b></label>  
		    		<!--  -->
		    		<select id="clientHouseMember" name="clientHouseMember">
		    		</select>
				</kl>
				<kl class="kl_second">
			   		<label>发薪日<b></b></label>  
			   		<input name="clientPayDay" type="text" class="newinput120  easyui-validatebox" value="0" data-options="validType:['number_interval[0,31]']" />（日）
			   	</kl>
			</li>
   			<li>
				<kl class="kl_three">
		    		<label>月收入<b></b></label>  
			   		<input name="clientMonthlyIncome" type="text" class="newinput120  easyui-validatebox" data-options="validType:['intOrFloat_interval[0,9999999999]']" />（元）
			   	</kl>
				<kl class="kl_second">
			   		<label>其他收入<b></b></label>  
			   		<input name="clientOtherIncome" type="text" class="newinput120  easyui-validatebox" data-options="validType:['intOrFloat_interval[0,9999999999]']" />（元）
			   	</kl>
			</li>
			<li> 
		        <kl class="kl_three">
			     	<label>电子邮件<b></b></label>
			     	<input name="clientEmail" id="clientEmail" type="text" class="newinput190 easyui-validatebox"  data-options="validType:['email']"/> 
			   	</kl>
			    <kl class="kl_second">
			    	<label>QQ<b></b></label>  
			   		<input name="clientQq" type="text" class="newinput190 easyui-validatebox" data-options="validType:['unnormal','qq' ]"/> 
			   	</kl>
			</li>
   			<li>
   				<label>&nbsp;</label>
   				<input  id="clear_client_disabled"  onclick="clearClientDisabled();"  type="button" class="scbtn" value="清除" style="margin-right: 5px;"/>
   				<input name="confirm_client_button"  onclick="saveClient();"   id="save_client"  type="button" class="scbtn" value="保存"/>
   			</li>
   		</ul>
   	</form>
</div>
    
    
     <%@include file="/jsp/common/common_dialog.jsp" %>
</body>
</html>
